<%-- 
    Document   : RolesdePago
    Created on : 24/06/2014, 01:51:39 AM
    Author     : USER
--%>

<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style type="text/css">@import url("tablas.css");</style>
        <link href="perfil.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div>ROLES DE PAGO</div>

        <br>
        <br>
        <div id="container">
            <div id="copy" style="height: 75px; position: absolute; bottom: 0px; left:0px; border: none; width: 100%;"><br/><br/><br/>																			 
            </div>				

            <div id="content">	
                <table border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="120">&nbsp;</td>
                        <td width="419" height="216" valign="top" background="images/user2.jpg" style="background: url(images/user2.jpg) no-repeat top left;">
                            <%String ced_emp=(String)request.getAttribute("cedula_emp"); %>
                            <div class="rent_buy"><span class="to_rent">ROLES DE PAGO</span><span class="to_ref">CI:<%=ced_emp%></span></div>
                            <div class="rent_buyP1"> 
                                <br>


                                <table  id="box-table-a" summary="Historial de Roles">
                                    <thead>
                                        <tr align="center">
                                            <th scope="col" width="7">ID Contrato</th>
                                            <th scope="col" width="135">ID Rol</th>
                                            <th scope="col" width="135">Fecha de Pago</th>
                                            <th scope="col" width="100"> --- </th>  
                                        </tr>
                                    </thead>
                                    <tbody>  

                                        <%
                                            ArrayList listaRoles = (ArrayList) request.getAttribute("listaRoles");

                                        %>
                                        <%                                            
                                            if (listaRoles != null)
                                                for (int i = 0; i < listaRoles.size(); i++) {
                                                    String cad[];
                                                    cad = ((String) listaRoles.get(i)).split("/");
                                        %>

                                        <tr>
                                            <td><%=cad[0] %></td>
                                            <td><%=cad[1] %></td>
                                            <td><%=cad[2] %></td>
                                            <td> 
                                                <form id="form3" method="post" action="ServletEmpleado?accion=ObtenerDetalleRol">
                                                    <input type="hidden" name="id_rol" value="<%=cad[1]%>" />
                                                    <input class="submit" type="submit" name="btn_det" value="Ver..." />                                                    
                                                </form>                                                
                                            </td> 
                                        </tr>    
                                        <%
                                                    }
                                        %>
                                    </tbody>
                                </table>

                                <img src="images/fond_rentp2.png" width="419" height="16" />
                            </div>
                        </td>
                        <td width="120">&nbsp;</td>   
                    </tr>
                </table>
            </div> 


            <div id="footer"><p class="copy">&copy; Copyright 2014 Empresa XYZ. All rights reserved</p></div>
        </div>

    </body>
</html>
